<?php

$api = app('Dingo\Api\Routing\Router');

$api->version('V1',[
    'namespace'  =>'App\Http\Controllers\Api\V1\Frontend\Table'
],function ($api){
    $api->group([
        'prefix'     => 'frontend',
        'middleware' => [
            'jwt.token'
        ]
    ],function ($api){
        $api->group([
            'prefix' => 'table'
        ],function ($api){
            //报表展示
            $api->get('index','IndexController@index')
                ->name('frontend.table.index.get');

            //分类条件
            $api->get('category','IndexController@category')
                ->name('frontend.table.index.get');

            //获取要展示的数据表
            $api->get('list','IndexController@list')
                ->name('frontend.table.list.get');

            //起草至今超长时效的状态
            $api->get('current/status','IndexController@currentStatus')
                ->name('frontend.table.status.get');
        });
    });
});
